Optimal. Leaf size=54 \[ -\frac{(a+2 b) \cosh (x)}{b^2}+\frac{(a+b)^2 \tan ^{-1}\left (\frac{\sqrt{b} \cosh (x)}{\sqrt{a}}\right )}{\sqrt{a} b^{5/2}}+\frac{\cosh ^3(x)}{3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0868472, antiderivative size = 54, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3190, 390, 205} \[ -\frac{(a+2 b) \cosh (x)}{b^2}+\frac{(a+b)^2 \tan ^{-1}\left (\frac{\sqrt{b} \cosh (x)}{\sqrt{a}}\right )}{\sqrt{a} b^{5/2}}+\frac{\cosh ^3(x)}{3 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3190
Rule 390
Rule 205
Rubi steps
\begin{align*} \int \frac{\sinh ^5(x)}{a+b \cosh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{\left (1-x^2\right )^2}{a+b x^2} \, dx,x,\cosh (x)\right )\\ &=\operatorname{Subst}\left (\int \left (-\frac{a+2 b}{b^2}+\frac{x^2}{b}+\frac{a^2+2 a b+b^2}{b^2 \left (a+b x^2\right )}\right ) \, dx,x,\cosh (x)\right )\\ &=-\frac{(a+2 b) \cosh (x)}{b^2}+\frac{\cosh ^3(x)}{3 b}+\frac{(a+b)^2 \operatorname{Subst}\left (\int \frac{1}{a+b x^2} \, dx,x,\cosh (x)\right )}{b^2}\\ &=\frac{(a+b)^2 \tan ^{-1}\left (\frac{\sqrt{b} \cosh (x)}{\sqrt{a}}\right )}{\sqrt{a} b^{5/2}}-\frac{(a+2 b) \cosh (x)}{b^2}+\frac{\cosh ^3(x)}{3 b}\\ \end{align*}
Mathematica [C] time = 0.174367, size = 120, normalized size = 2.22 \[ \frac{-3 \sqrt{b} (4 a+7 b) \cosh (x)+\frac{12 (a+b)^2 \tan ^{-1}\left (\frac{\sqrt{b}-i \sqrt{a+b} \tanh \left (\frac{x}{2}\right )}{\sqrt{a}}\right )}{\sqrt{a}}+\frac{12 (a+b)^2 \tan ^{-1}\left (\frac{\sqrt{b}+i \sqrt{a+b} \tanh \left (\frac{x}{2}\right )}{\sqrt{a}}\right )}{\sqrt{a}}+b^{3/2} \cosh (3 x)}{12 b^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.025, size = 214, normalized size = 4. \begin{align*}{\frac{1}{3\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-3}}-{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}-{\frac{a}{{b}^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{3}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}+{\frac{{a}^{2}}{{b}^{2}}\arctan \left ({\frac{1}{4} \left ( 2\, \left ( a+b \right ) \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-2\,a+2\,b \right ){\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}+2\,{\frac{a}{\sqrt{ab}b}\arctan \left ( 1/4\,{\frac{2\, \left ( a+b \right ) \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-2\,a+2\,b}{\sqrt{ab}}} \right ) }+{\arctan \left ({\frac{1}{4} \left ( 2\, \left ( a+b \right ) \left ( \tanh \left ( x/2 \right ) \right ) ^{2}-2\,a+2\,b \right ){\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{1}{3\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-3}}-{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{a}{{b}^{2}} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{3}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{{\left (b e^{\left (6 \, x\right )} - 3 \,{\left (4 \, a + 7 \, b\right )} e^{\left (4 \, x\right )} - 3 \,{\left (4 \, a + 7 \, b\right )} e^{\left (2 \, x\right )} + b\right )} e^{\left (-3 \, x\right )}}{24 \, b^{2}} + \frac{1}{32} \, \int \frac{64 \,{\left ({\left (a^{2} + 2 \, a b + b^{2}\right )} e^{\left (3 \, x\right )} -{\left (a^{2} + 2 \, a b + b^{2}\right )} e^{x}\right )}}{b^{3} e^{\left (4 \, x\right )} + b^{3} + 2 \,{\left (2 \, a b^{2} + b^{3}\right )} e^{\left (2 \, x\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.07122, size = 2957, normalized size = 54.76 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]